import request from '@/utils/request'

// 添加全球
export function addGlobal(data) {
    return request({
        url: '/system/global',
        method: 'POST',
        data: data
    })
}
//删除
export function deleteGlobal(id) {
    return request({
        url: '/system/global/' + id,
        method: 'DELETE',

    })
}
//获取列表
export function getList() {
    return request({
        url: '/system/global/list',
        method: 'GET',
    })
}
//执行

export function getExec(data) {
    return request({
        url: '/system/global/exec',
        method: 'GET',
        params: data
    })
}
//查看

export function getGlobalLog(data) {
    return request({
        url: '/system/global/catLog',
        method: 'GET',
        params: data
    })
}
//删除log文件
export function delGlobalLog(data) {
    return request({
        url: '/system/global/deleteLog',
        method: 'GET',
        params: data
    })
}
//刷新

export function getGlobalRefresh(data) {
    return request({
        url: '/system/global/refresh',
        method: 'GET',
        params: data
    })
}